using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Domain
{
    [SugarTable("Lwp_Cgdd")]
    public class Lwp_Cgdd
    {
        [Key]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        public string OrderTheme { get; set; } = string.Empty;
        public string PurchaseNumber { get; set; } = string.Empty;
        public string SystemNumber { get; set; } = string.Empty;
        public string? RelatedPurchase { get; set; }
        public string? RelatedSalesOrder { get; set; }
        public bool UnbindSalesOrder { get; set; }
        public DateTime PurchaseDate { get; set; }
        public string SupplierName { get; set; } = string.Empty;
        public string ContactPerson { get; set; } = string.Empty;
        public string Purchaser { get; set; } = string.Empty;
        public string ContactPhone { get; set; } = string.Empty;
        public string ContactMethod { get; set; } = string.Empty;
        public string SettlementMethod { get; set; } = string.Empty;
        public string PurchaseDepartment { get; set; } = string.Empty;
        public string RelatedProject { get; set; } = string.Empty;
        public string DeliveryAddress { get; set; } = string.Empty;
        public string Remarks { get; set; } = string.Empty;
        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
        [Navigate(NavigateType.OneToMany, nameof(Lwp_CgddItem.OrderId), nameof(Id))]
        public List<Lwp_CgddItem> CgddItems { get; set; } = new();
    }
} 